package com.fh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fh.bean.User;
import com.fh.mapper.UserRepositoryMapper;
import com.fh.service.UserRepositoryService;
import org.springframework.stereotype.Service;

/**
 * @author whf
 * @date 2024年10月22日 15:51
 */
@Service
public class UserRepositoryImpl extends ServiceImpl<UserRepositoryMapper,User> implements UserRepositoryService {
    @Override
    public User findByUsername(String username) {
        return getOne(new QueryWrapper<User>().eq("username",username));
    }
}
